from action import index,admin,upload,Seo
#路由
Url=[
    ##前端
    (r"/art/([0-9]+)",index.article),
    (r"/a/(.*)",index.PinyinArticle),
    (r"/search",index.search),
    (r"/nav/([0-9]+)",index.nav),
    (r"/", index.index),
    (r"/index.html", index.index),
    ##后台
    (r"/admin", admin.admin),
    (r"/admin/login",admin.admin_login),
    (r"/admin/article",admin.article),
    (r"/admin/nav",admin.navlist),
    (r"/admin/nav/creat",admin.navlist_create),
    (r"/admin/nav/update/([0-9]+)",admin.navlist_update),
    (r"/admin/nav/del/([0-9]+)",admin.navlist_del),
    (r"/admin/article/creat",admin.article_create),
    (r"/admin/article/update/([0-9]+)",admin.article_update),
    (r"/admin/article/del/([0-9]+)",admin.article_del),
    (r"/admin/logout",admin.admin_logout),
    (r"/upload",upload.blog),
    ##seo优化
    (r"/site.txt",Seo.site),


]